﻿using System;
using System.Collections.Generic;
using System.Text;
using LibNoise;
using SampleImageGenerator.Modules.Primitives;

namespace SampleImageGenerator.Modules.Operations
{
	internal class ScaleOutput : IModule
	{
		public Double Scale { get; set; }
		public IModule Module { get; set; }

		public ScaleOutput()
		{
			Scale = 1;
			Module = new Constant();
		}

		public Double GetValue(Double x, Double y, Double z)
		{
			Double scaledValue = Scale *  Module.GetValue(x, y, z);
			return scaledValue;
		}
	}
}
